// 单点入口
import app from './app';
import {APP_PORT} from './app/app.config'
import {connection} from './app/database/mysql'

// console.log(APP_PORT)
// console.log(process.env)
// console.log('hello ts big')

app.listen(APP_PORT,()=>{
    console.log('服务启动')
})

connection.connect(error=>{
    if(error){
        console.log('链接数据库失败',error.message)
        return ;
    }
    console.log('成功链接数据库')
})